/**
 * 药品单据类型
 */
var DrugConstant = /** @class */ (function () {
    function DrugConstant() {
        this.OP_DS_SYSTEM = "01";
        this.OP_DW_SYSTEM = "02";
        /**
         * 药房入库业务【暂不用】
         */
        this.OP_DS_INSTORE = "010";
        /**
         * 药房采购入库业务【暂不用】
         */
        this.OP_DS_BUYINSTORE = "011";
        /**
         * 药房期初入库业务，操作流程：在药房入库选择期初入库
         */
        this.OP_DS_FIRSTIN = "012";
        /**
         * 药房流通入库业务，从药库出库到药房，操作流程：在药库出库中选择流通出库，最后在药房入库中会产生一笔流通入库的单据
         */
        this.OP_DS_CIRCULATEIN = "013";
        /**
         * 药房申请单业务，药房向药库领药申请，操作流程：在药房领药申请后，在药库出库选择流通出库，然后点击加载领药申请单，最后在药房入库中会产生一笔流通入库的单据
         */
        this.OP_DS_APPLYPLAN = "014";
        /**
         * 药房返库业务，药房把药退回到药库，操作流程：在药库出库中选择退库，最后在药房入库中会产生一笔药房返库的单据
         */
        this.OP_DS_RETURNSOTRE = "015";
        /**
         * 科室退药业务，科室把药退回到药房，操作流程：在药房入库中选择科室退药
         */
        this.OP_DEPT_RETURNDSSOTRE = "016";
        /**
         * 药房申请退库业务【暂不用】
         */
        this.OP_DS_APPLYBACK = "017";
        /**
         * 药房内耗出库业务类型，药房把药出库到科室，操作流程：在药房出库中选择内耗出库
         */
        this.OP_DS_DEPTDRAW = "021";
        /**
         * 药房报损出库业务类型，操作流程：在药房出库中选择报损出库
         */
        this.OP_DS_REPORTLOSS = "022";
        /**
         * 药房门诊发药
         */
        this.OP_DS_OPDISPENSE = "031";
        /**
         * 药房门诊退药
         */
        this.OP_DS_OPREFUND = "032";
        /**
         * 药房住院发药
         */
        this.OP_DS_IPDISPENSE = "033";
        /**
         * 药房盘点业务类型
         */
        this.OP_DS_CHECK = "041";
        /**
         * 药房盘点审核业务类型
         */
        this.OP_DS_AUDITCHECK = "042";
        /**
         * 药房调价业务
         */
        this.OP_DS_ADJPRICE = "051";
        /**
         * 药房月结业务类型
         */
        this.OP_DS_MONTHACCOUNT = "052";
        /**
         * 药库入库业务【暂不用】
         */
        this.OP_DW_INSTORE = "110";
        /**
         * 药库采购入库类型，药库从供货商入库药品，操作流程：在药库入库中选择采购入库
         */
        this.OP_DW_BUYINSTORE = "111";
        /**
         * 药库期初入库类型，操作流程：在药库入库中选择期初入库
         */
        this.OP_DW_FIRSTIN = "112";
        /**
         * 药库退货类型，药库把药品退还给供货商，操作流程：在药库入库中选择药库退货
         */
        this.OP_DW_BACKSTORE = "113";
        /**
         * 药库流通出库类型，药库把药品出库到药房，对应药房的013，操作流程：在药库出库中选择流通出库，最后在药房入库中多一笔流通入库单据
         */
        this.OP_DW_CIRCULATEOUT = "121";
        /**
         * 药库内耗出库业务类型，药库把药品直接出库给科室，操作流程：在药库出库中选择内耗出库
         */
        this.OP_DW_DEPTDRAW = "122";
        /**
         * 药库报损出库业务类型，操作流程：在药库出库中选择报损出库
         */
        this.OP_DW_REPORTLOSS = "123";
        /**
         * 药库退库业务，药房把药品退还给药库，对应药房的015，操作流程：在药库出库中选择药库退库，最后在药房入库中会产生一笔药房返库的单据
         */
        this.OP_DW_RETURNSTORE = "124";
        /**
         * 药库盘点业务
         */
        this.OP_DW_CHECK = "141";
        /**
         * 药库盘点审核业务
         */
        this.OP_DW_AUDITCHECK = "142";
        /**
         * 药库调价业务
         */
        this.OP_DW_ADJPRICE = "151";
        /**
         * 药库月结业务
         */
        this.OP_DW_MONTHACCOUNT = "152";
        /**
         * 药库采购计划
         */
        this.OP_DW_STOCKPLAN = "153";
    }
    return DrugConstant;
}());

/**
 * 药品表模型集合
 */
var DrugTableModel = /** @class */ (function () {
    function DrugTableModel() {
        this.DG_AdjDetail = {
            "model": {
                "AdjDetailID": 0,
                "AdjHeadID": 0,
                "DrugID": 0,
                "UnitID": 0,
                "UnitAmount": 0,
                "OldRetailPrice": "",
                "NewRetailPrice": "",
                "AdjRetailFee": "",
                "DeptID": 0,
                "BatchNO": "",
                "BillNO": "",
                "AuditFlag": "",
                "AdjAmount": "",
                "WorkID": 0,
                "UnitName": "",
                "PackUnitID": 0,
                "PackUnitName": "",
                "BatchTag": ""
            },
            "tablename": "DG_AdjDetail",
            "key": "AdjDetailID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DG_AdjHead = {
            "model": {
                "AdjHeadID": 0,
                "BillNO": "",
                "RegEmpID": 0,
                "RegTime": "yyyy-MM-dd",
                "Remark": "",
                "AdjCode": "",
                "ExecTime": "yyyy-MM-dd",
                "ExecFlag": "",
                "AuditFlag": "",
                "DelFlag": "",
                "BusiType": "",
                "DeptID": 0,
                "WorkID": 0
            },
            "tablename": "DG_AdjHead",
            "key": "AdjHeadID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DG_AntDic = {
            "model": {
                "AntID": 0,
                "AntName": "",
                "PYCode": "",
                "WBCode": "",
                "DelFlag": "",
                "WorkID": 0
            },
            "tablename": "DG_AntDic",
            "key": "AntID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DG_BusiType = {
            "model": {
                "BusiTypeID": 0,
                "BusiTypeName": "",
                "Remark": "",
                "BusiCode": "",
                "IsStop": "",
                "DeptType": "",
                "DelFlag": ""
            },
            "tablename": "DG_BusiType",
            "key": "BusiTypeID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DG_CenterSpecDic = {
            "model": {
                "CenteDrugID": 0,
                "CenterDrugCode": "",
                "ChemName": "",
                "LatinName": "",
                "PYCode": "",
                "WBCode": "",
                "CusCode": "",
                "Spec": "",
                "PackUnitID": 0,
                "PackUnit": "",
                "MiniUnitID": 0,
                "MiniUnit": "",
                "DoseUnitID": 0,
                "DoseUnit": "",
                "PackAmount": "",
                "DoseAmount": "",
                "StockPrice": "",
                "RetailPrice": "",
                "TypeID": 0,
                "CTypeID": 0,
                "StatID": 0,
                "PharmID": 0,
                "DosageID": 0,
                "IsGMP": "",
                "IsAze": "",
                "IsPosion": "",
                "IsBasic": "",
                "IsCostly": "",
                "IsLunacy": "",
                "IsBid": "",
                "IsSkin": "",
                "AntID": 0,
                "ModEmpID": 0,
                "ModDate": "yyyy-MM-dd",
                "CreateWorkID": "",
                "AuditStatus": "",
                "Auditor": 0,
                "AuditTime": "yyyy-MM-dd",
                "IsStop": "",
                "WorkID": 0,
                "IsRecipe": "",
                "IsBigTransfu": "",
                "LunacyGrade": "",
                "IsSAD": "",
                "DDD": "",
                "IsAdjuvant": "",
                "DDDCovertSpec": "",
                "LastOperationUserId": 0,
                "LastOperationDateTiem": "yyyy-MM-dd"
            },
            "tablename": "DG_CenterSpecDic",
            "key": "CenteDrugID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DG_ChildTypeDic = {
            "model": {
                "CTypeID": 0,
                "TypeID": 0,
                "CTypeName": "",
                "PYCode": "",
                "WBCode": "",
                "WorkID": 0
            },
            "tablename": "DG_ChildTypeDic",
            "key": "CTypeID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DG_Dept_Type = {
            "model": {
                "RelationID": 0,
                "DeptID": 0,
                "DrugTypeID": 0,
                "MatTypeID": 0,
                "WorkID": 0
            },
            "tablename": "DG_Dept_Type",
            "key": "RelationID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DG_DeptDic = {
            "model": {
                "DeptDicID": 0,
                "DeptName": "",
                "DeptCode": "",
                "DeptType": "",
                "StopFlag": "",
                "DeptID": 0,
                "WorkID": 0,
                "CheckStatus": ""
            },
            "tablename": "DG_DeptDic",
            "key": "DeptDicID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DG_DeptRelation = {
            "model": {
                "DrugDeptID": 0,
                "RelationDeptID": 0,
                "RelationDeptName": "",
                "DelFlag": "",
                "Remark": "",
                "UpdateTime": "yyyy-MM-dd",
                "RegEmpID": 0,
                "WorkID": 0,
                "RelationDeptType": 0
            },
            "tablename": "DG_DeptRelation",
            "key": "DrugDeptID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DG_DosageDic = {
            "model": {
                "DosageID": 0,
                "TypeID": 0,
                "DosageName": "",
                "PYCode": "",
                "WBCode": "",
                "WorkID": 0,
                "DelFlag": ""
            },
            "tablename": "DG_DosageDic",
            "key": "DosageID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DG_HospMakerDic = {
            "model": {
                "DrugID": 0,
                "CenteDrugID": 0,
                "TradeName": "",
                "PYCode": "",
                "WBCode": "",
                "ApprovalNO": "",
                "DefUsgID": 0,
                "DefFcyID": 0,
                "StockPrice": "",
                "RetailPrice": "",
                "StatID": 0,
                "MedicareID": 0,
                "Agricultural": "",
                "RoundingMode": 0,
                "OPFree": 0,
                "IPFree": 0,
                "ProductID": 0,
                "DrugDirection": "",
                "ModStaff": 0,
                "ModDate": "yyyy-MM-dd",
                "IsStop": "",
                "WorkID": 0,
                "Duration": 0,
                "Maker": 0,
                "NationalCode": "",
                "MedicareItemCode": "",
                "OPResolveFlag": 0,
                "IPResolveFlag": 0,
                "LastOperationUserId": 0,
                "LastOperationDateTiem": "yyyy-MM-dd"
            },
            "tablename": "DG_HospMakerDic",
            "key": "DrugID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DG_Location = {
            "model": {
                "LocationID": 0,
                "ParentID": 0,
                "LocationName": "",
                "IsLeafNode": "",
                "Remark": "",
                "DeptID": 0,
                "WorkID": 0
            },
            "tablename": "DG_Location",
            "key": "LocationID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DG_MedicareDic = {
            "model": {
                "MedicareID": 0,
                "MedicareName": "",
                "PYCode": "",
                "WBCode": "",
                "Remark": "",
                "WorkID": 0
            },
            "tablename": "DG_MedicareDic",
            "key": "MedicareID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DG_PayRecord = {
            "model": {
                "PayRecordID": 0,
                "PayTime": "yyyy-MM-dd",
                "PayEmpName": "",
                "PayEmpID": 0,
                "Remark": "",
                "DelFlag": "",
                "InvoiceNO": "",
                "SupportName": 0,
                "TotalRetailFee": "",
                "TotalStockFee": "",
                "PayDeptID": 0
            },
            "tablename": "DG_PayRecord",
            "key": "PayRecordID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DG_Pharmacology = {
            "model": {
                "PharmID": 0,
                "ParentID": 0,
                "PharmName": "",
                "Delflag": "",
                "PYCode": "",
                "WBCode": "",
                "WorkID": 0
            },
            "tablename": "DG_Pharmacology",
            "key": "PharmID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DG_ProductDic = {
            "model": {
                "ProductID": 0,
                "ProductName": "",
                "PYCode": "",
                "WBCode": "",
                "PhoneNO": "",
                "LinkMan": "",
                "Address": "",
                "DelFlag": "",
                "WorkID": 0
            },
            "tablename": "DG_ProductDic",
            "key": "ProductID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DG_SupportDic = {
            "model": {
                "SupplierID": 0,
                "SupportName": "",
                "PYCode": "",
                "WBCode": "",
                "PhoneNO": "",
                "LinkMan": "",
                "Address": "",
                "DelFlag": "",
                "WorkID": 0
            },
            "tablename": "DG_SupportDic",
            "key": "SupplierID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DG_TypeDic = {
            "model": {
                "TypeID": 0,
                "TypeName": "",
                "PYCode": "",
                "WBCode": "",
                "WorkID": 0
            },
            "tablename": "DG_TypeDic",
            "key": "TypeID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DG_UnitDic = {
            "model": {
                "UnitID": 0,
                "UnitName": "",
                "PYCode": "",
                "WBCode": "",
                "WorkID": 0
            },
            "tablename": "DG_UnitDic",
            "key": "UnitID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DS_Account = {
            "model": {
                "AccountID": 0,
                "BalanceYear": 0,
                "BalanceMonth": 0,
                "AccountType": 0,
                "RetailPrice": "",
                "StockPrice": "",
                "BusiType": "",
                "BillNO": "",
                "UnitID": 0,
                "UnitAmount": 0,
                "UnitName": "",
                "RegTime": "yyyy-MM-dd",
                "DebitAmount": "",
                "LendAmount": "",
                "OverAmount": "",
                "DebitRetailFee": "",
                "LendRetailFee": "",
                "DebitStockFee": "",
                "LendStockFee": "",
                "OverStockFee": "",
                "OverRetailFee": "",
                "BalanceFlag": "",
                "BalanceID": 0,
                "DrugID": 0,
                "CTypeID": 0,
                "BatchNO": "",
                "DeptID": 0,
                "DetailID": 0,
                "WorkID": 0,
                "BatchTag": ""
            },
            "tablename": "DS_Account",
            "key": "AccountID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DS_Allotment = {
            "model": {
                "AllotmentID": 0,
                "AllotmentName": "",
                "AllotmentStatus": 0,
                "AllotmentType": 0,
                "DeptID": 0,
                "AllNumber": 0,
                "FinishNumber": 0,
                "AllotmentDate": "yyyy-MM-dd",
                "WorkID": 0,
                "CreateDate": "yyyy-MM-dd",
                "Status": 0
            },
            "tablename": "DS_Allotment",
            "key": "AllotmentID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DS_AllotmentDetail = {
            "model": {
                "AllotmentDetailID": 0,
                "AllotmentAllotID": 0,
                "AllotmentSendID": 0,
                "CreateDate": "yyyy-MM-dd",
                "WorkID": 0
            },
            "tablename": "DS_AllotmentDetail",
            "key": "AllotmentDetailID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DS_ApplyDetail = {
            "model": {
                "ApplyDetailID": 0,
                "ApplyHeadID": 0,
                "StorageID": 0,
                "CTypeID": 0,
                "DrugID": 0,
                "UnitID": 0,
                "UnitName": "",
                "Amount": "",
                "FactAmount": "",
                "BatchNO": "",
                "ValidDate": "yyyy-MM-dd",
                "WorkID": 0,
                "BatchTag": ""
            },
            "tablename": "DS_ApplyDetail",
            "key": "ApplyDetailID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DS_ApplyHead = {
            "model": {
                "ApplyHeadID": 0,
                "OutStoreHeadID": 0,
                "RelationNO": "",
                "RegTime": "yyyy-MM-dd",
                "RegEmpName": "",
                "RegEmpID": 0,
                "UpdateTime": "yyyy-MM-dd",
                "ApplyDeptID": 0,
                "ToDeptID": 0,
                "ApplyDeptName": "",
                "ToDeptName": "",
                "BillNO": "",
                "AuditFlag": "",
                "DelFlag": "",
                "Remark": "",
                "AuditTime": "yyyy-MM-dd",
                "AuditEmpID": 0,
                "AuditEmpName": "",
                "WorkID": 0
            },
            "tablename": "DS_ApplyHead",
            "key": "ApplyHeadID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DS_AuditDetail = {
            "model": {
                "AuditDetailID": 0,
                "StorageID": 0,
                "CTypeID": 0,
                "DrugID": 0,
                "Place": "",
                "BatchNO": "",
                "ValidityDate": "yyyy-MM-dd",
                "DeptID": 0,
                "BillNO": "",
                "FactAmount": "",
                "FactStockFee": "",
                "FactRetailFee": "",
                "ActAmount": "",
                "ActStockFee": "",
                "ActRetailFee": "",
                "UnitID": 0,
                "PackUnit": "",
                "UnitAmount": 0,
                "UnitName": "",
                "RetailPrice": "",
                "StockPrice": "",
                "AuditHeadID": 0,
                "WorkID": 0,
                "BatchTag": ""
            },
            "tablename": "DS_AuditDetail",
            "key": "AuditDetailID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DS_AuditHead = {
            "model": {
                "AuditHeadID": 0,
                "BillNO": "",
                "EmpID": 0,
                "EmpName": "",
                "AuditTime": "yyyy-MM-dd",
                "Remark": "",
                "DelFlag": "",
                "AuditFlag": "",
                "BusiType": "",
                "DeptID": 0,
                "WorkID": 0,
                "ProfitRetailFee": "",
                "ProfitStockFee": "",
                "LossRetailFee": "",
                "LossStockFee": "",
                "CheckStockFee": "",
                "ActStockFee": "",
                "CheckRetailFee": "",
                "ActRetailFee": ""
            },
            "tablename": "DS_AuditHead",
            "key": "AuditHeadID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DS_BackStockDetail = {
            "model": {
                "BackStockDetailID": 0,
                "BackStockHeadID": 0,
                "StorageID": 0,
                "CTypeID": 0,
                "DrugID": 0,
                "UnitID": 0,
                "UnitName": "",
                "Amount": "",
                "FactAmount": "",
                "BatchNO": "",
                "ValidDate": "yyyy-MM-dd",
                "WorkID": 0,
                "BatchTag": ""
            },
            "tablename": "DS_BackStockDetail",
            "key": "BackStockDetailID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DS_BackStockHead = {
            "model": {
                "BackSHeadID": 0,
                "OutStoreHeadID": 0,
                "RelationNO": "",
                "RegTime": "yyyy-MM-dd",
                "RegEmpName": "",
                "RegEmpID": 0,
                "UpdateTime": "yyyy-MM-dd",
                "ApplyDeptID": 0,
                "ToDeptID": 0,
                "ApplyDeptName": "",
                "ToDeptName": "",
                "BillNO": "",
                "AuditFlag": "",
                "DelFlag": "",
                "Remark": "",
                "AuditTime": "yyyy-MM-dd",
                "AuditEmpID": 0,
                "AuditEmpName": "",
                "WorkID": 0
            },
            "tablename": "DS_BackStockHead",
            "key": "BackSHeadID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DS_BalanceRecord = {
            "model": {
                "BalanceID": 0,
                "BalanceYear": 0,
                "BalanceMonth": 0,
                "BeginTime": "yyyy-MM-dd",
                "EndTime": "yyyy-MM-dd",
                "RegEmpID": 0,
                "RegEmpName": "",
                "RegTime": "yyyy-MM-dd",
                "DeptID": 0,
                "WorkID": 0
            },
            "tablename": "DS_BalanceRecord",
            "key": "BalanceID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DS_Batch = {
            "model": {
                "BatchID": 0,
                "StorageID": 0,
                "DeptID": 0,
                "DrugID": 0,
                "BatchNO": "",
                "StockPrice": "",
                "RetailPrice": "",
                "InstoreTime": "yyyy-MM-dd",
                "BatchAmount": "",
                "UnitID": 0,
                "UnitName": "",
                "PackUnit": "",
                "UnitAmount": 0,
                "ValidityTime": "yyyy-MM-dd",
                "DelFlag": "",
                "WorkID": 0,
                "IsValidity": "",
                "LastOperationUserId": 0,
                "LastOperationDateTiem": "yyyy-MM-dd",
                "BatchTag": ""
            },
            "tablename": "DS_Batch",
            "key": "BatchID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DS_CheckDetail = {
            "model": {
                "CheckDetailID": 0,
                "StorageID": 0,
                "Place": "",
                "DeptID": 0,
                "CTypeID": 0,
                "DrugID": 0,
                "BillNO": "",
                "FactAmount": "",
                "FactStockFee": "",
                "FactRetailFee": "",
                "ActAmount": "",
                "ActStockFee": "",
                "ActRetailFee": "",
                "UnitID": 0,
                "PackUnit": "",
                "UnitAmount": 0,
                "UnitName": "",
                "AuditFlag": "",
                "BillTime": "yyyy-MM-dd",
                "RetailPrice": "",
                "StockPrice": "",
                "CheckHeadID": 0,
                "WorkID": 0
            },
            "tablename": "DS_CheckDetail",
            "key": "CheckDetailID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DS_CheckHead = {
            "model": {
                "CheckHeadID": 0,
                "BillNO": "",
                "RegEmpID": 0,
                "RegEmpName": "",
                "RegTime": "yyyy-MM-dd",
                "AuditEmpID": 0,
                "AuditEmpName": "",
                "AuditTime": "yyyy-MM-dd",
                "Remark": "",
                "DelFlag": "",
                "AuditFlag": "",
                "BusiType": "",
                "DeptID": 0,
                "AuditHeadID": 0,
                "AuditNO": 0,
                "WorkID": 0
            },
            "tablename": "DS_CheckHead",
            "key": "CheckHeadID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DS_InStoreDetail = {
            "model": {
                "InDetailID": "",
                "InHeadID": "",
                "DrugID": "",
                "BatchNO": "",
                "ValidityDate": "yyyy-MM-dd",
                "Amount": "",
                "UnitID": 0,
                "UnitName": "",
                "PackUnit": "",
                "UnitAmount": 0,
                "StockPrice": "",
                "RetailPrice": "",
                "StockFee": "",
                "RetailFee": "",
                "BillNO": "",
                "DeptID": "",
                "Remark": "",
                "WorkID": "",
                "CTypeID": 0,
                "BatchTag": ""
            },
            "tablename": "DS_InStoreDetail",
            "key": "InDetailID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DS_InstoreHead = {
            "model": {
                "InHeadID": 0,
                "BusiType": "",
                "OpEmpID": 0,
                "OpEmpName": "",
                "AuditFlag": "",
                "DelFlag": "",
                "Remark": "",
                "AuditTime": "yyyy-MM-dd",
                "AuditEmpID": 0,
                "AuditEmpName": "",
                "RegTime": "yyyy-MM-dd",
                "RegEmpID": 0,
                "RegEmpName": "",
                "BillNO": "",
                "StockFee": "",
                "RetailFee": "",
                "InvoiceNO": "",
                "InvoiceDate": "yyyy-MM-dd",
                "BillTime": "yyyy-MM-dd",
                "SupplierID": 0,
                "SupplierName": "",
                "DeliveryNO": "",
                "PayFlag": "",
                "PayRecordID": 0,
                "DeptID": 0,
                "WorkID": 0,
                "OutStoreHeadID": 0
            },
            "tablename": "DS_InstoreHead",
            "key": "InHeadID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DS_IPDispDetail = {
            "model": {
                "DispDetailID": 0,
                "DispHeadID": 0,
                "CTypeID": 0,
                "DrugID": 0,
                "DrugSpecID": 0,
                "ChemName": "",
                "DrugSpec": "",
                "ProductName": "",
                "UnitID": 0,
                "UnitName": "",
                "UnitAmount": 0,
                "DispAmount": "",
                "Dosage": 0,
                "RetailPrice": "",
                "StockPrice": "",
                "BatchNO": "",
                "RetailFee": "",
                "StockFee": "",
                "FeelID": 0,
                "ChargeTime": "yyyy-MM-dd",
                "ChargerID": 0,
                "MsgHeadID": 0,
                "MsgDetaillID": 0,
                "GroupNO": 0,
                "InpatientNO": "",
                "InPatientID": 0,
                "PatName": "",
                "BedNo": "",
                "PresDocID": 0,
                "PresDocName": "",
                "UseAmount": "",
                "UseWay": "",
                "Frequency": "",
                "UseUnit": "",
                "PackUnit": "",
                "Orders": "",
                "DeptID": 0,
                "WorkID": 0,
                "RetFlag": "",
                "BatchTag": ""
            },
            "tablename": "DS_IPDispDetail",
            "key": "DispDetailID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DS_IPDispHead = {
            "model": {
                "DispHeadID": 0,
                "BillNO": "",
                "RetailFee": "",
                "DispenserID": 0,
                "PharmacistID": 0,
                "DispTime": "yyyy-MM-dd",
                "RefFlag": "",
                "BusiType": "",
                "DeptID": 0,
                "WorkID": 0,
                "ExecDeptID": 0,
                "BillTypeID": 0
            },
            "tablename": "DS_IPDispHead",
            "key": "DispHeadID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DS_OPDispDetail = {
            "model": {
                "DispDetailID": 0,
                "DispHeadID": 0,
                "FeeDetailID": 0,
                "CTypeID": 0,
                "DrugID": 0,
                "DrugSpec": "",
                "ChemName": "",
                "ProductName": "",
                "UnitID": 0,
                "UnitName": "",
                "PackUnit": "",
                "UnitAmount": 0,
                "DispAmount": "",
                "RetailPrice": "",
                "StockPrice": "",
                "BatchNO": "",
                "RetailFee": "",
                "StockFee": "",
                "RetFlag": "",
                "RefundFlag": "",
                "UseAmount": "",
                "UseWay": "",
                "Frequency": "",
                "UseUnit": "",
                "Orders": "",
                "DeptID": 0,
                "WorkID": 0,
                "FeeItemHeadID": 0,
                "BatchTag": ""
            },
            "tablename": "DS_OPDispDetail",
            "key": "DispDetailID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DS_OPDispHead = {
            "model": {
                "DispHeadID": "",
                "BillNO": "",
                "BusiType": "",
                "RetailFee": "",
                "PatListID": "",
                "PatName": "",
                "PatSex": "",
                "Diagnose": "",
                "PatAge": "",
                "PresDocID": "",
                "PresDocName": "",
                "PresDeptID": 0,
                "PresDeptName": "",
                "DispenserID": 0,
                "DispenserName": "",
                "PharmacistID": 0,
                "PharmacistName": "",
                "RefundFlag": "",
                "DispTime": "yyyy-MM-dd",
                "FeeNO": "",
                "InvoiceNO": "",
                "ChargeTime": "yyyy-MM-dd",
                "ChargeEmpID": 0,
                "ChargeEmpName": "",
                "FeeItemHeadID": 0,
                "RecipeID": 0,
                "RecipeType": "",
                "RecipeAmount": 0,
                "DeptID": 0,
                "WorkID": 0
            },
            "tablename": "DS_OPDispHead",
            "key": "DispHeadID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DS_OutStoreDetail = {
            "model": {
                "OutDetailID": 0,
                "DrugID": 0,
                "CTypeID": 0,
                "Remark": "",
                "BillNO": "",
                "StockFee": "",
                "RetailFee": "",
                "StockPrice": "",
                "RetailPrice": "",
                "UnitID": 0,
                "UnitName": "",
                "PackUnit": "",
                "UnitAmount": 0,
                "Amount": "",
                "ValidityDate": "yyyy-MM-dd",
                "BatchNO": "",
                "LostReason": "",
                "ToDeptID": 0,
                "OutHeadID": 0,
                "UnitDicID": 0,
                "DeptID": 0,
                "WorkID": 0,
                "BatchTag": ""
            },
            "tablename": "DS_OutStoreDetail",
            "key": "OutDetailID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DS_OutStoreHead = {
            "model": {
                "OutStoreHeadID": 0,
                "BusiType": "",
                "DelFlag": "",
                "AuditFlag": "",
                "AuditTime": "yyyy-MM-dd",
                "AuditEmpID": 0,
                "AuditEmpName": "",
                "RegTime": "yyyy-MM-dd",
                "RegEmpID": 0,
                "RegEmpName": "",
                "BillNO": "",
                "StockFee": "",
                "RetailFee": "",
                "InvoiceNO": "",
                "InvoiceTime": "",
                "BillTime": "yyyy-MM-dd",
                "DeptID": 0,
                "InStoreHeadID": 0,
                "RelationNO": "",
                "Remark": "",
                "ToDeptID": 0,
                "ToDeptName": "",
                "WorkID": 0,
                "LostReason": ""
            },
            "tablename": "DS_OutStoreHead",
            "key": "OutStoreHeadID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DS_PharmacyReport_Tree = {
            "model": {
                "PharmacyReport_Tree_ID": 0,
                "PharmacyReport_Tree_Name": "",
                "parentID": 0,
                "PharmacyReport_Tree_Code": "",
                "Sort_Order": 0,
                "Report_No": "",
                "Proc_Name": "",
                "ReportParam": "",
                "Is_Stop": 0,
                "Add_Time": "yyyy-MM-dd",
                "Update_Time": "yyyy-MM-dd",
                "Work_ID": 0
            },
            "tablename": "DS_PharmacyReport_Tree",
            "key": "PharmacyReport_Tree_ID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DS_Storage = {
            "model": {
                "StorageID": "",
                "DrugID": "",
                "Amount": "",
                "Place": "",
                "LastStockPrice": "",
                "RegTime": "yyyy-MM-dd",
                "UpperLimit": "",
                "LowerLimit": "",
                "UnitID": 0,
                "UnitName": "",
                "PackUnit": "",
                "UnitAmount": 0,
                "DelFlag": "",
                "DeptID": 0,
                "ResolveFlag": "",
                "LocationID": 0,
                "WorkID": 0,
                "LastOperationUserId": 0,
                "LastOperationDateTiem": "yyyy-MM-dd"
            },
            "tablename": "DS_Storage",
            "key": "StorageID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DS_ValidStorage = {
            "model": {
                "ID": 0,
                "StorageID": "",
                "DrugID": "",
                "ValidAmount": "",
                "DeptID": 0,
                "WorkID": 0
            },
            "tablename": "DS_ValidStorage",
            "key": "ID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DS_ValidStorageLog = {
            "model": {
                "ID": 0,
                "StorageID": 0,
                "DrugID": 0,
                "StorageAmount": "",
                "OldValiAmount": "",
                "NewValiAmount": "",
                "AddTime": "yyyy-MM-dd",
                "EmpID": 0,
                "WorkID": 0,
                "ModuleName": "",
                "DispNum": ""
            },
            "tablename": "DS_ValidStorageLog",
            "key": "ID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DW_Account = {
            "model": {
                "AccountID": 0,
                "BalanceYear": 0,
                "BalanceMonth": 0,
                "AccountType": 0,
                "RetailPrice": "",
                "StockPrice": "",
                "BusiType": "",
                "BillNO": "",
                "UnitID": 0,
                "UnitName": "",
                "RegTime": "yyyy-MM-dd",
                "DebitAmount": "",
                "LendAmount": "",
                "OverAmount": "",
                "DebitRetailFee": "",
                "LendRetailFee": "",
                "DebitStockFee": "",
                "LendStockFee": "",
                "OverStockFee": "",
                "OverRetailFee": "",
                "BalanceFlag": "",
                "BalanceID": 0,
                "CTypeID": 0,
                "DrugID": 0,
                "BatchNO": "",
                "DeptID": 0,
                "DetailID": 0,
                "WorkID": 0,
                "BatchTag": ""
            },
            "tablename": "DW_Account",
            "key": "AccountID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DW_AuditDetail = {
            "model": {
                "AuditDetailID": 0,
                "DrugStoreID": 0,
                "CTypeID": 0,
                "DrugID": 0,
                "Place": "",
                "BatchNO": "",
                "ValidityDate": "yyyy-MM-dd",
                "DeptID": 0,
                "BillNO": "",
                "FactAmount": "",
                "FactStockFee": "",
                "FactRetailFee": "",
                "ActAmount": "",
                "ActStockFee": "",
                "ActRetailFee": "",
                "UnitID": 0,
                "UnitName": "",
                "RetailPrice": "",
                "StockPrice": "",
                "AuditHeadID": 0,
                "WorkID": 0,
                "BatchTag": ""
            },
            "tablename": "DW_AuditDetail",
            "key": "AuditDetailID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DW_AuditHead = {
            "model": {
                "AuditHeadID": 0,
                "BillNO": "",
                "EmpID": 0,
                "EmpName": "",
                "AuditTime": "yyyy-MM-dd",
                "Remark": "",
                "DelFlag": "",
                "AuditFlag": "",
                "BusiType": "",
                "DeptID": 0,
                "WorkID": 0,
                "ProfitRetailFee": "",
                "ProfitStockFee": "",
                "LossRetailFee": "",
                "LossStockFee": "",
                "CheckStockFee": "",
                "ActStockFee": "",
                "CheckRetailFee": "",
                "ActRetailFee": ""
            },
            "tablename": "DW_AuditHead",
            "key": "AuditHeadID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DW_BalanceRecord = {
            "model": {
                "BalanceID": 0,
                "BalanceYear": 0,
                "BalanceMonth": 0,
                "BeginTime": "yyyy-MM-dd",
                "EndTime": "yyyy-MM-dd",
                "RegEmpID": 0,
                "RegEmpName": "",
                "RegTime": "yyyy-MM-dd",
                "DeptID": 0,
                "WorkID": 0
            },
            "tablename": "DW_BalanceRecord",
            "key": "BalanceID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DW_Batch = {
            "model": {
                "BatchID": 0,
                "StorageID": 0,
                "DeptID": 0,
                "DrugID": 0,
                "BatchNO": "",
                "StockPrice": "",
                "RetailPrice": "",
                "InstoreTime": "yyyy-MM-dd",
                "BatchAmount": "",
                "UnitID": 0,
                "UnitName": "",
                "ValidityTime": "yyyy-MM-dd",
                "DelFlag": "",
                "WorkID": 0,
                "BatchTag": "",
                "BatchRelease": ""
            },
            "tablename": "DW_Batch",
            "key": "BatchID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DW_CheckDetail = {
            "model": {
                "CheckDetailID": 0,
                "DrugStoreID": 0,
                "Place": "",
                "DeptID": 0,
                "CTypeID": 0,
                "DrugID": 0,
                "BillNO": "",
                "FactAmount": "",
                "FactStockFee": "",
                "FactRetailFee": "",
                "ActAmount": "",
                "ActStockFee": "",
                "ActRetailFee": "",
                "UnitID": 0,
                "UnitName": "",
                "AuditFlag": "",
                "BillTime": "yyyy-MM-dd",
                "RetailPrice": "",
                "StockPrice": "",
                "CheckHeadID": 0,
                "BatchNO": "",
                "ValidityDate": "yyyy-MM-dd",
                "WorkID": 0,
                "BatchTag": ""
            },
            "tablename": "DW_CheckDetail",
            "key": "CheckDetailID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DW_CheckHead = {
            "model": {
                "CheckHeadID": 0,
                "BillNO": "",
                "RegEmpID": 0,
                "RegEmpName": "",
                "RegTime": "yyyy-MM-dd",
                "AuditEmpID": 0,
                "AuditEmpName": "",
                "AuditTime": "yyyy-MM-dd",
                "Remark": "",
                "DelFlag": "",
                "AuditFlag": "",
                "BusiType": "",
                "DeptID": 0,
                "AuditHeadID": 0,
                "AuditNO": "",
                "WorkID": 0
            },
            "tablename": "DW_CheckHead",
            "key": "CheckHeadID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DW_InStoreDetail = {
            "model": {
                "InDetailID": 0,
                "InHeadID": 0,
                "CTypeID": 0,
                "DrugID": 0,
                "BatchNo": "",
                "ValidityDate": "yyyy-MM-dd",
                "Amount": "",
                "UnitName": "",
                "UnitID": 0,
                "StockPrice": "",
                "RetailPrice": "",
                "StockFee": "",
                "RetailFee": "",
                "BillNo": "",
                "DeptID": 0,
                "Remark": "",
                "WorkID": 0,
                "BatchTag": "",
                "BatchRelease": ""
            },
            "tablename": "DW_InStoreDetail",
            "key": "InDetailID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DW_InStoreHead = {
            "model": {
                "InHeadID": 0,
                "BusiType": "",
                "OpEmpID": 0,
                "OpEmpName": "",
                "AuditFlag": "",
                "DelFlag": "",
                "Remark": "",
                "AuditTime": "yyyy-MM-dd",
                "AuditEmpID": "",
                "AuditEmpName": "",
                "RegTime": "yyyy-MM-dd",
                "RegEmpID": 0,
                "RegEmpName": "",
                "BillNo": "",
                "StockFee": "",
                "RetailFee": "",
                "InvoiceNo": "",
                "InvoiceDate": "yyyy-MM-dd",
                "BillTime": "yyyy-MM-dd",
                "SupplierID": 0,
                "SupplierName": "",
                "DeliveryNo": "",
                "PayFlag": "",
                "PayRecordID": 0,
                "DeptID": 0,
                "WorkID": 0
            },
            "tablename": "DW_InStoreHead",
            "key": "InHeadID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
        this.DW_OutStoreDetail = {
            "model": {
                "OutDetailID": 0,
                "CTypeID": 0,
                "DrugID": 0,
                "AuditFlag": "",
                "Remark": "",
                "BillNO": "",
                "StockFee": "",
                "RetailFee": "",
                "StockPrice": "",
                "RetailPrice": "",
                "UnitID": 0,
                "UnitName": "",
                "Amount": "",
                "ValidityDate": "yyyy-MM-dd",
                "BatchNO": "",
                "LostReason": "",
                "ToDeptID": 0,
                "OutHeadID": 0,
                "InStoreDetailID": 0,
                "UnitDicID": 0,
                "DeptID": 0,
                "WorkID": 0,
                "BatchTag": "",
                "BatchRelease": ""
            },
            "tablename": "DW_OutStoreDetail",
            "key": "OutDetailID",
            "val": "0",
            "objval": {},
            "query": {},
            "where": "",
            "pageinfo": {},
            "WorkId": 1
        };
    }
    return DrugTableModel;
}());

/**
 * 药品通用类
 */
var DrugUtil = /** @class */ (function () {
    function DrugUtil() {
    }
    /**
     * 生成单据流水号
     */
    DrugUtil.prototype.CreateDrugBillSerialNumber = function () {
        return;
    };
    return DrugUtil;
}());

/**
 * 业务模型：药库期初入库
 */
var BM_DWFirstInStorage = /** @class */ (function () {
    function BM_DWFirstInStorage() {
    }
    /**
     * 创建或修改单据
     */
    BM_DWFirstInStorage.prototype.CreateOrAlterBill = function () {
    };
    /**
     * 删除单据
     */
    BM_DWFirstInStorage.prototype.DeleteBill = function () {
    };
    /**
     * 审核单据
     */
    BM_DWFirstInStorage.prototype.AuditBill = function () {
    };
    /**
     * 写入台账
     */
    BM_DWFirstInStorage.prototype.WriteAccount = function () {
    };
    /**
     * 打印单据
     */
    BM_DWFirstInStorage.prototype.PrintBill = function () {
    };
    return BM_DWFirstInStorage;
}());

/**
 * 业务模型：药房退药到药库入库
 */
var BM_DWReturnInStorage = /** @class */ (function () {
    function BM_DWReturnInStorage() {
    }
    /**
     * 创建或修改单据
     */
    BM_DWReturnInStorage.prototype.CreateOrAlterBill = function () {
    };
    /**
     * 删除单据
     */
    BM_DWReturnInStorage.prototype.DeleteBill = function () {
    };
    /**
     * 审核单据
     */
    BM_DWReturnInStorage.prototype.AuditBill = function () {
    };
    /**
     * 写入台账
     */
    BM_DWReturnInStorage.prototype.WriteAccount = function () {
    };
    /**
     * 打印单据
     */
    BM_DWReturnInStorage.prototype.PrintBill = function () {
    };
    return BM_DWReturnInStorage;
}());

/**
 * 数据库操作：药库入库
 */
var Dao_YKInStorage = /** @class */ (function () {
    function Dao_YKInStorage() {
    }
    return Dao_YKInStorage;
}());

/**
 * 界面控制器：药库入库，包含期初入库和药房退药，把采购入库和药库退货迁移到药库采购管理中
 */
var YKInStorageController = /** @class */ (function () {
    function YKInStorageController() {
        this.data = {
            loginright: LobsterAPI.ProgramData('loginright'),
            dbConn: LobsterAPI.ProgramData('dbConn'),
            resultdata: { data: {} }
        };
    }
    YKInStorageController.prototype.main = function (funname) {
        //注意：这里必须返回self.data.resultdata，不然前端收不到返回值
        return this.data.resultdata;
    };
    /**
     * 页面初始化数据，比如下拉框中的选择药库、供货单位、业务类型等
     */
    YKInStorageController.prototype.initdata = function () {
    };
    /**
     * 获取药品数据，添加入库单明细的时候用到
     */
    YKInStorageController.prototype.getdrugdata = function () {
    };
    /**
     * 获取入库单据，显示在界面左侧树
     */
    YKInStorageController.prototype.getbilldata = function () {
    };
    /**
     * 获取入库单据明细，点击树节点显示在中间表格
     */
    YKInStorageController.prototype.getbilldetaildata = function () {
    };
    /**
     * 保存单据表单
     */
    YKInStorageController.prototype.savebill = function () {
    };
    /**
     * 保存单据明细
     */
    YKInStorageController.prototype.savebilldetail = function () {
    };
    /**
     * 删除单据
     */
    YKInStorageController.prototype.deletebill = function () {
    };
    /**
     * 删除单据明细
     */
    YKInStorageController.prototype.deletebilldetail = function () {
    };
    /**
     * 审核单据
     */
    YKInStorageController.prototype.auditbill = function () {
    };
    /**
     * 打印单据
     */
    YKInStorageController.prototype.printbill = function () {
    };
    return YKInStorageController;
}());

